/**
 * 
 */
package edu.gtcfla.km.admin.appmodules.vo;

import java.io.Serializable;
import java.util.LinkedHashSet;
import java.util.Set;

import org.vsg.biz.BusinessEntityFactory;
import org.vsg.biz.account.ModuleFunction;
import org.vsg.common.web.json.SelectItem;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * @author Bill Vison
 *
 */
@JsonIgnoreProperties(value = {"moduleFunction"})
public class ModuleFunctionPermissionVO implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -4719544768278733950L;

	public ModuleFunction moduleFunction;
	
	private String acl;
	
	private Set<SelectItem> actionEvents = new LinkedHashSet<SelectItem>();


	private BusinessEntityFactory entityFactory = BusinessEntityFactory.getInstance();		

	public ModuleFunctionPermissionVO() {
		moduleFunction = entityFactory.create( ModuleFunction.class ); 
	}
	
	public ModuleFunctionPermissionVO(ModuleFunction modFun) {
		this.moduleFunction = modFun;
	}

	public String getAcl() {
		return acl;
	}

	public void setAcl(String acl) {
		this.acl = acl;
	}

	public void setId(String newId) {
		moduleFunction.setId(newId);
	}

	public String getName() {
		return moduleFunction.getName();
	}

	public String getId() {
		return moduleFunction.getId();
	}

	public void setName(String name) {
		moduleFunction.setName(name);
	}

	public void setCode(String newCode) {
		moduleFunction.setCode(newCode);
	}

	public String getCode() {
		return moduleFunction.getCode();
	}

	public void setRemark(String newDescription) {
		moduleFunction.setRemark(newDescription);
	}

	public void setDeleted(short newFlagDeleted) {
		moduleFunction.setDeleted(newFlagDeleted);
	}

	public short getDeleted() {
		return moduleFunction.getDeleted();
	}

	public ModuleFunction getModuleFunction() {
		return moduleFunction;
	}

	public Set<SelectItem> getActionEvents() {
		return actionEvents;
	}

	public void setActionEvents(Set<SelectItem> actionEvents) {
		this.actionEvents = actionEvents;
	}
	
	
	
	

}
